#无元素跳出循环并返回失败
execute store result score #temp1 temp run data get storage dab:system temp.list
execute if score #temp1 temp matches ..0 run return fail

#try merge
execute store success score #success temp run data modify storage dab:system temp.list[0] merge from storage dab:system temp.target[0]

#merge失败代表列表元素重复并返回成功
execute if score #success temp matches ..0 run return run scoreboard players set #success1 temp 1

#循环
data remove storage dab:system temp.list[0]
function util:traversal/is_in_list/merge_test_loop